//
//  WHAccountInfo.h
//  GoldenManager
//  用户信息单例
//  Created by 文 on 2018/7/13.
//  Copyright © 2018年 sanpu. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface WHAccountInfo : NSObject

//用户名
@property (nonatomic,strong) NSString *userName;
//用户名 带星
@property (nonatomic,strong) NSString *userNameStar;
//用户头像
@property (nonatomic,strong) NSString *headPortrait;
//商务微信
@property (nonatomic,strong) NSString *businessWechat;
//是否为合伙人
@property (nonatomic,assign) BOOL isPartner;
//级别
@property (nonatomic,strong) NSString *levelId;
//级别   枚举
@property (nonatomic,strong) NSString *vipLevel;
//
@property (nonatomic,strong) NSString *levelImagePath;
//
@property (nonatomic,strong) NSString *levelName;
//昵称
@property (nonatomic,strong) NSString *nickName;
//注册时间
@property (nonatomic,strong) NSString *registerDate;
//邀请码
@property (nonatomic,strong) NSString *shareCode;
//上级用户名
@property (nonatomic,strong) NSString *upUserName;
//用户编号
@property (nonatomic,strong) NSString *userCode;

//微信登录相关信息
//unionId
@property (nonatomic,strong) NSString *wechatUnionId;
//openId
@property (nonatomic,strong) NSString *wechatOpenId;
//昵称
@property (nonatomic,strong) NSString *wechatNickName;
//头像
@property (nonatomic,strong) NSString *wechatHeadimgurl;
//性别
@property (nonatomic,strong) NSString *wechatSex;
//是否绑定微信
@property (nonatomic,assign) BOOL  isBindWeChat;
//微信号
@property (nonatomic,strong) NSString *wechatNo;
//微信open id
@property (nonatomic,strong) NSString *appOpenId;


//是否在launch页面
@property (nonatomic,assign) BOOL     isLaunching;
//是否是审核版本
@property (nonatomic,assign) BOOL     isCheck;
//首次打开APP
@property (nonatomic,assign) BOOL     firstLoadApp;

@property (nonatomic,strong) NSArray *addressProvinceArr;
@property (nonatomic,strong) NSArray *addressCityArr;
@property (nonatomic,strong) NSArray *addressAreaArr;

//提现相关配置
@property (nonatomic,assign) BOOL     withDrawEnable;
@property (nonatomic,strong) NSString *withDrawMinMoney;
@property (nonatomic,strong) NSString *withDrawMaxMoney;
@property (nonatomic,strong) NSString *withDrawTimeStart;
@property (nonatomic,strong) NSString *withDrawTimeEnd;
@property (nonatomic,strong) NSString *withDrawAmt;
@property (nonatomic,strong) NSString *withDrawCnlId;

//修改绑定支付宝账号  是否获取过验证码
@property (nonatomic,assign) BOOL     isGetCodeForBindAlipay;
//是否绑定了支付宝
@property (nonatomic,assign) BOOL     isBindAlipay;
//支付宝账号
@property (nonatomic,strong) NSString *alipayCode;
//支付宝名称
@property (nonatomic,strong) NSString *alipayName;

//荣耀碎片抽奖一次的金额
@property (nonatomic,strong) NSString *drawAmt;

@property (nonatomic,strong) NSString *refillCardAvailableBalance;

@property (nonatomic,strong) NSString *accountBalance;

//是否能购买新手礼
@property (nonatomic,strong) NSString *isNewGoods;
//是否观看新手视频
@property (nonatomic,strong) NSString *isNewVideo;
//解忧会用到     上级用户分享码
@property (nonatomic,strong) NSString *upShareCode;
//上级用户分享码
@property (nonatomic,strong) NSString *upShareCodeTemp;

@property (nonatomic,assign) BOOL isOpenJyh;
//注册成功后，是否需要跳转到解忧惠商品详情
@property (nonatomic,assign) BOOL isNeedToJyh;
@property (nonatomic,strong) NSString  *jyhGoodsId;
@property (nonatomic,strong) NSString  *jyhGoodsGroupId;

+(WHAccountInfo *)sharedWHAccountInfo;

- (void)updateAccountMessgage:(NSDictionary *)userCenterDictionary;

- (void)clearAccountMsg;

- (void)parseDataWithDict;

- (void)updateUserConfig:(NSDictionary *)userConfigDict;
@end
